package com.zzg.service.Impl;

import com.zzg.entity.ShowMap;
import com.zzg.entity.Viewdata;
import com.zzg.mapper.ViewdataMapper;
import com.zzg.service.ViewdataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zzg
 * @version 1.0.0
 * @ClassName：ViewdataServiceImpl
 * @Description: 描述
 * @date 2021/7/8
 **/
@Service
public class ViewdataServiceImpl implements ViewdataService {
    @Autowired
    private ViewdataMapper viewdataMapper;

    @Override
    public List<Viewdata> circular() {
        return viewdataMapper.circular();
    }
    @Override
    public List<Viewdata> quantity() {
        List<Viewdata> quantity = viewdataMapper.quantity();

        return quantity;
    }

    @Override
    public List<Viewdata> financeWay() {
        return viewdataMapper.financeWay();
    }

    @Override
    public List<ShowMap> showWay() {
        return viewdataMapper.showWay();
    }
    @Override
    public List<String> mapNumeric() {
        List<String> list=new ArrayList<>();
        list.add(viewdataMapper.numeri1());
        list.add(viewdataMapper.numeri2());
        list.add(viewdataMapper.numeri3());
        list.add(viewdataMapper.numeri4());
        list.add(viewdataMapper.numeri5());
        list.add(viewdataMapper.numeri6());
        list.add(viewdataMapper.numeri7());
        list.add(viewdataMapper.numeri8());
        list.add(viewdataMapper.numeri9());
        for (String num : list) {
            System.out.println("数据查询的值："+num);
        }
        return list;
    }
}
